export const BreadcrumbList = ['首页', '分类管理', '分类列表']

export const filterList = [
    {
        label: '添加分类',
        key: 'add',
        type: 'button',
        config: {
            type: 'primary'
        },
        span: 2
    }
]


export const categoriesColumns = [
    {
        type: 'index',
        width: 60,
        align: 'center'
    },
    {
        title: '分类id',
        key: 'id',
    },
    {
        title: '分类名称',
        key: 'name'
    },
    {
        title: '关键词',
        key: 'key',
    },
    {
        title: '父级分类',
        key: 'parent_id',
    },

    {
        title: '操作',
        key: 'action',
        width: 150,
        align: 'center',
        render: (h, params) => {
            return h('div', [
                h('i-button', {
                    attrs: {
                        type: 'primary',
                        size: 'small',
                    },
                    on: {
                        click: () => {
                            console.log(params)
                        }
                    },
                    style: {
                        marginRight: '8px'
                    }
                }, '编辑'),
                h('i-button', {
                    attrs: {
                        type: 'error',
                        size: 'small',
                    },
                    on: {
                        click: () => {
                            console.log(params)
                        }
                    }
                }, '删除')
            ])
        }
    }
]
